package com.sporch.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

/**
 * 端点注册信息
 * @Author: czy
 * @Date: 2019/6/5 8:37
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "endpoint_registration")
public class EndpointRegistration {
    private String id;

    @Field("application_id")
    private String applicationId;

    @Field("endpoint_id")
    private String endpointId;

    @Field("credentials_id")
    private String credentialsId;

    /**
     * 端点状态
     */
    private String status;
}
